import random

user_num = range(1,21)

total_salary = 10000

for user in user_num:
    print("开始给%d号员工发工资:" % user)
    commission = random.randint(1,10)
    if commission < 5:
        print("%d号员工的绩效是%d，绩效太低不发工资" % (user, commission))
        continue
    else:
        print("%d号员工的绩效是%d,符合发工资标准，发放工资1000元" % (user, commission))
        total_salary -= 1000

    if total_salary <= 0:
        print("工资已发完，发工资结束，没领取到工资的员工，请持续关注")
        break    

